home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
appsrcs.zip
/
APPSETUP.ZIP
/
APPGRADE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-02-04
|
845b
|
38 lines
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "appsetup.h"
/*-------------------------------------------------------------------------*/
BOOL WINAPI UpgradeDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
static DLGPROC lpfnInitDlgProc;
switch(message)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch(wParam)
{
case IDUPGRADE_YES:
lpfnInitDlgProc = (DLGPROC) MakeProcInstance(InitDlgProc, hInst);
DialogBox(hInst, "InitDlg", hDlg, lpfnInitDlgProc);
FreeProcInstance((FARPROC) lpfnInitDlgProc);
EndDialog(hDlg, 0);
return TRUE;
case IDUPGRADE_NO:
EndDialog(hDlg, 0);
return TRUE;
}
break;
}
return FALSE;
}